<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif;">
<table  border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">&nbsp;</th>
  	<?php foreach($this->cyList as $cy){?>  
    <th scope="col">Cycle <?php echo $cy['id_cycle']." - ".$cy['year'];?></th>
   <?php }?>
  </tr>
  <?php foreach($this->arrRes as $idStaff => $detail ){?>
  <tr>
    <td><?php echo $this->arrStaff[$idStaff]?></td>
    <?php foreach($this->cyList as $cy2){?>
    <td align="center" bgcolor="#FFFFFF"><?php 
	$result = $detail[$cy2['id_cycle']."-".$cy2['year']];
	//$result;
	switch($result){
		case(0):{ echo '<strong style="color:#ddd;font-size:24px;">O</strong>';break;}
		case(1):{ echo '<strong style="color:#063;font-size:24px;">V</strong>';break;}
		case(2):{ echo '<strong style="color:#f99;font-size:24px;">X</strong>';break;}
		}
	?>
       </td>
    <?php }?>
  <?php }?>  
  </tr>
</table>
</body>
</html>
